﻿using Permissions.PermissionssApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Permissions.Web.Controllers
{
    public class PermissionssController : Controller
    {
        private readonly IPermissionssAppService _permissionsRepository;

        public PermissionssController(IPermissionssAppService permissionsRepository)
        {
            _permissionsRepository = permissionsRepository;
        }

        // GET: permissionss
        public ActionResult Index()
        {
            var permissionss = _permissionsRepository.GetPermissionss();

            return View(permissionss);
        }
    }
}